package org.zjx.window.window.impl;

import com.sun.jna.platform.win32.WinDef;
import org.zjx.window.operation.impl.GameOperator;
import org.zjx.window.util.HwndUtil;
import org.zjx.window.window.AbstractWindow;

import java.awt.*;
import java.util.List;

public class LoginWindow extends AbstractWindow {
    private static final String className = "WSGAME";
    private static final String titleName = "梦幻西游 ONLINE";

    public static List<WinDef.HWND> getWindows() {
        return HwndUtil.findWindows(className,titleName);
    }

    public LoginWindow(WinDef.HWND hwnd) {
        super(hwnd, new GameOperator());
    }

    @Override
    public Rectangle getTrueBounds() {
        return new Rectangle(8,31,800,600);
    }
}
